import request from 'utils/request'

interface GetPassengersOption {
  dzcode?: string
}

// 客运站-客流统计- left top
export function getPassengersTotal ({ dzcode }: GetPassengersOption) {
  return request({
    url: 'transport/situation/getPassengersTotal',
    method: 'GET',
    params: {
      dzcode
    }
  })
}

// 客运站-今日客流排行- left bottom
export function getPassengersTop ({ dzcode }: GetPassengersOption) {
  return request({
    url: 'transport/situation/getPassengersTop',
    method: 'GET',
    params: {
      dzcode
    }
  })
}

// 客运站-地图分布- center
export function getStationMap ({ dzcode }: GetPassengersOption) {
  return request({
    url: 'transport/situation/getStationMap',
    method: 'GET',
    params: {
      dzcode
    }
  })
}
